@import "elements.less";

.a(active) {
    color: #ffffff;//white
}
.a(hover) {
    color: #ffffff;//white
}
.a(inactive) {
    color: #b0b0b0;//grey
}
.a(item) {
    color: #000000;//black
    font-size: 13px;
}
.a(@any) {
    display: block;
    font-size: 13px;
    line-height: 25px;
    outline: none;
    overflow: hidden;
    padding: 3px;
    text-decoration: none;
    text-align: center;
    width: auto;
    z-index: 10;
}

.grey() {
    background: rgb(238,238,238); /* Old browsers */
    background: -moz-linear-gradient(left, rgba(238,238,238,1) 0%, rgba(204,204,204,1) 100%); /* FF3.6+ */
    background: -webkit-gradient(linear, left top, right top, color-stop(0%,rgba(238,238,238,1)), color-stop(100%,rgba(204,204,204,1))); /* Chrome,Safari4+ */
    background: -webkit-linear-gradient(left, rgba(238,238,238,1) 0%,rgba(204,204,204,1) 100%); /* Chrome10+,Safari5.1+ */
    background: -o-linear-gradient(left, rgba(238,238,238,1) 0%,rgba(204,204,204,1) 100%); /* Opera 11.10+ */
    background: -ms-linear-gradient(left, rgba(238,238,238,1) 0%,rgba(204,204,204,1) 100%); /* IE10+ */
    background: linear-gradient(left, rgba(238,238,238,1) 0%,rgba(204,204,204,1) 100%); /* W3C */
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#eeeeee', endColorstr='#cccccc',GradientType=1 ); /* IE6-9 */
}

.table() {
    display: none;
    tr {
        td {
            background-color: white;
            border-left: 1px solid black;
            border-right: 1px solid black;
            padding: 3px;
            &:hover {
                .grey;
            }
            a {
                .a(item);
            }
        }
    }
}
hr {
    .box-shadow (3px 5px 13px #b0b0b0);
    background-color: #2d2d2d;
    display: block;
    height: 2em;
    left: 0;
    margin: 0;
    position: fixed;
    top: 0;
    width: 100%;
}
div#menu_div {
    table#menu {
        left: 0;
        position: fixed;
        top: 0;
        z-index: 10;
        tr {  
            td {
                //.box-shadow (3px 5px 23px #000000);
                float: left;
                top: 0;
                vertical-align: top;
                width: 100px;
                &#active {
                    a {
                        .a(active);
                    }
                    table {
                        .table;
                    }
                }
                a {
                    .a(inactive);
                    &:hover {
                            .a(hover);
                    }
                }
                table {
                    .table;
                }
                &#active:hover, &:hover {
                    table {
                        display: block;
                    }
                }
            }
        }
    }
}